#! /usr/bin/python

# Pongathon
# Version 1.4.1
# Copyright 2014 Josef J. Polak III
# Pongathon is distributed under the terms of the GNU General Public License

# This file is part of Pongathon.

# Pongathon is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Pongathon is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

import events
import views
import controllers
import model

def main():
	"""Initalize and kick off the main loop"""
	
	evManager = events.EventManager()
	
	game = model.Game(evManager)
	keybd = controllers.Keyboard(evManager)
	mixer = views.PygameSoundView(evManager)
	window = views.PygameGraphicalView(evManager, game)
	spinner = controllers.CPUSpinner(evManager)
	
	spinner.Run()

if __name__ == "__main__":
	main()
